package com.loong.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 * 数据库用户表
 */
public class User implements Serializable {
    private static final long serialVersionUID = 1L;
    private Integer uid;
    private String username;//用户名
    private String password;//密码
    private String email;//邮箱
    private String sex;//性别
    private Integer status;//状态0：禁用 1：正常
    private String code;//验证码
    private Integer role;//角色

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    @Override
    public String toString() {
        return "UserInfo{" +
                "uid=" + uid +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", email='" + email + '\'' +
                ", sex='" + sex + '\'' +
                ", status=" + status +
                ", code='" + code + '\'' +
                ", role=" + role +
                '}';
    }
}
